//8.	Create the following methods that MODIFY the given Map in the following ways: flip 
//horizontally, flip vertically, flip about the x/y axis, rotate clockwise, and rotate 
//	counter-clockwise, respectively. After these methods are run, the map data itself 
//	should be changed (i.e. old map data deleted and replaced with new map data that is 
//	a modified version of the old data).
//void flipH()
//void flipV()
//void flipXY()
//void rotateCW()
//void rotateCCW()

//#define PRIMER8

#ifdef PRIMER8

#include "Map.h"

int main()
{
	Map myMap;

	if (myMap.LoadFile("test8.txt"))
	{
		myMap.Draw(0, 0);

		myMap.FlipH();
		myMap.Draw(10, 0);
		myMap.FlipH(); // flip back

		myMap.FlipV();
		myMap.Draw(20, 0);
		myMap.FlipV(); // flip back

		myMap.FlipXY();
		myMap.Draw(0, 10);
		myMap.FlipXY(); //flip back

		myMap.RotateCW();
		myMap.Draw(10, 10);
		myMap.RotateCW();
		myMap.RotateCW();
		myMap.RotateCW(); // rotate back

		myMap.RotateCCW();
		myMap.Draw(20, 10);
	}
	else
	{
		std::cout << "Error reading file!" << std::endl;
		return 0;
	}

	return 0;
}



#endif